package com.hele.sts.dao;

import java.util.Date;

public class QUser {
	public static final String USER_STATUS_LEISURE = "1";
	public static final String USER_STATUS_USED = "2";
	public static final String USER_STATUS_REVOKE = "3";
	public static final String USER_YHLX_INTERNAL = "1";
	public static final String USER_YHLX_EXTERNAL = "2";
	public static final String USER_DYQX_IN = "1";
	public static final String USER_DYQX_EX = "0";
	String userId;
	String groupId;
	String userName;
	String passwd;
	String yhlx;
	Date khrq;
	String status;
	Date cxrq;
	Date ghrq;
	String cxqx;
	String dyqx;
	String bz;
	String q_userName;
	String fullname;
	String realName;
	String yhsf;
	String dyfs;
	// xuning add 20141212
	String cxmd;
	// xuning add 20150122
	String djid;

	String cxqxName;
	/**
	 * @return the cxqxName
	 */
	public String getCxqxName() {
		return cxqxName;
	}

	/**
	 * @param cxqxName the cxqxName to set
	 */
	public void setCxqxName(String cxqxName) {
		this.cxqxName = cxqxName;
	}

	/**
	 * @return the cxmd
	 */
	public String getCxmd() {
		return cxmd;
	}

	/**
	 * @param cxmd
	 *            the cxmd to set
	 */
	public void setCxmd(String cxmd) {
		this.cxmd = cxmd;
	}

	public String getFullname() {
		return this.fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getQ_userName() {
		return this.q_userName;
	}

	public void setQ_userName(String name) {
		this.q_userName = name;
	}

//	public String getCxqxName() {
//		if ((this.cxqx != null) && (this.cxqx.trim().equalsIgnoreCase("1"))) {
//			return "内部机密";
//		}
//		if ((this.cxqx != null) && (this.cxqx.trim().equalsIgnoreCase("2"))) {
//			return "内部一般";
//		}
//		if ((this.cxqx != null) && (this.cxqx.trim().equalsIgnoreCase("3"))) {
//			return "公检法级";
//		}
//		if ((this.cxqx != null) && (this.cxqx.trim().equalsIgnoreCase("4"))) {
//			return "外部一般";
//		}
//		return "未知";
//	}

	public String getDyqxName() {
		if ((this.dyqx != null) && (this.dyqx.trim().equalsIgnoreCase("1"))) {
			return "有";
		}
		if ((this.dyqx != null) && (this.dyqx.trim().equalsIgnoreCase("0"))) {
			return "无";
		}
		return "未知";
	}

	public String getYhlxName() {
		if ((this.yhlx != null) && (this.yhlx.trim().equalsIgnoreCase("1"))) {
			return "内部用户";
		}
		if ((this.yhlx != null) && (this.yhlx.trim().equalsIgnoreCase("2"))) {
			return "外部用户";
		}
		return "未知";
	}

	public String getStatusName() {
		if ((this.status != null) && (this.status.trim().equalsIgnoreCase("1"))) {
			return "空闲";
		}
		if ((this.status != null) && (this.status.trim().equalsIgnoreCase("2"))) {
			return "使用";
		}
		if ((this.status != null) && (this.status.trim().equalsIgnoreCase("3"))) {
			return "注销";
		}
		return "未知";
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getYhlx() {
		return this.yhlx;
	}

	public void setYhlx(String yhlx) {
		this.yhlx = yhlx;
	}

	public Date getKhrq() {
		return this.khrq;
	}

	public void setKhrq(Date khrq) {
		this.khrq = khrq;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCxrq() {
		return this.cxrq;
	}

	public void setCxrq(Date cxrq) {
		this.cxrq = cxrq;
	}

	public Date getGhrq() {
		return this.ghrq;
	}

	public void setGhrq(Date ghrq) {
		this.ghrq = ghrq;
	}

	public String getCxqx() {
		return this.cxqx;
	}

	public void setCxqx(String cxqx) {
		this.cxqx = cxqx;
	}

	public String getDyqx() {
		return this.dyqx;
	}

	public void setDyqx(String dyqx) {
		this.dyqx = dyqx;
	}

	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getYhsf() {
		return this.yhsf;
	}

	public void setYhsf(String yhsf) {
		this.yhsf = yhsf;
	}

	public String getDyfs() {
		return this.dyfs;
	}

	public void setDyfs(String dyfs) {
		this.dyfs = dyfs;
	}

	/**
	 * @return the djid
	 */
	public String getDjid() {
		return djid;
	}

	/**
	 * @param djid
	 *            the djid to set
	 */
	public void setDjid(String djid) {
		this.djid = djid;
	}

	@Override
	public String toString() {
		return "QUser{" +
				"userId='" + userId + '\'' +
				", groupId='" + groupId + '\'' +
				", userName='" + userName + '\'' +
				", passwd='" + passwd + '\'' +
				", yhlx='" + yhlx + '\'' +
				", khrq=" + khrq +
				", status='" + status + '\'' +
				", cxrq=" + cxrq +
				", ghrq=" + ghrq +
				", cxqx='" + cxqx + '\'' +
				", dyqx='" + dyqx + '\'' +
				", bz='" + bz + '\'' +
				", q_userName='" + q_userName + '\'' +
				", fullname='" + fullname + '\'' +
				", realName='" + realName + '\'' +
				", yhsf='" + yhsf + '\'' +
				", dyfs='" + dyfs + '\'' +
				", cxmd='" + cxmd + '\'' +
				", djid='" + djid + '\'' +
				", cxqxName='" + cxqxName + '\'' +
				'}';
	}
}
